Replies: 4 comments 5 replies
Hi again! Can you be more specific here? The marshalling example makes use of QInputDialog, mdoutliner makes use of QFileDialog, printsupport uses QPrintDialog, and kitemviews uses QDialog directly. The first three inherit from QDialog either directly or indirectly. Also, as part of the development to support Qt Creator, I did extensive testing which involved much use of QDialog so that is an option if you need to use it as well and need some code generated. It would be used like all of the other Qt objects in the examples based on QWidget as well. Also, there are examples that make use of QDialogButtonBox in case that is which dialog you are referring to. Can you share exactly what issues you had? |
|
Thanks for pointing out examples that used dialog. I am still using a zig 0.14.1 and libqt6zig-examples accordingly. The marshalling, mdouliner, printsupport work fine. I just tried to create a simple input dialog. const std = @import("std");
const qt6 = @import("libqt6zig");
const C = qt6.C;
const qapplication = qt6.qapplication;
const qdialog = qt6.qdialog;
const qdialogbuttonbox = qt6.qdialogbuttonbox;
const qdialogbuttonbox_enums = qt6.qdialogbuttonbox_enums;
var dialog: C.QDialog = undefined;
pub fn main() void {
dialog = qdialog.New2();
qdialog.SetWindowTitle(dialog, "Qt 6 Dialog");
qdialog.SetWhatsThis(dialog, "Qt6 Dialog");
const buttonbox = qdialogbuttonbox.New(dialog);
qdialogbuttonbox.SetStandardButtons(buttonbox, qdialogbuttonbox_enums.StandardButton.Ok | qdialogbuttonbox_enums.StandardButton.Cancel);
qdialog.Resize(dialog, 350, 600);
_ = qdialog.Exec(dialog);
}
And get I am on debian 13/Qt6.8 It is a linking issue, I guess. |
|
Not really. I think its from my end as I cut and pasted your working code and still the same errors. Will do further debug and report back later. Thanks. |
|
Working now. You are right. Turned out I miss those lines in |

Uh oh!
There was an error while loading. Please reload this page.
Would be great if you could check Dialog Widget as I tried without success. An short example even better. Thanks.
All reactions