Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Connecting to signal of another class

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    K
    @mranger90 thanks yes that would be an issue wouldn't it. I'm a C programmer that's rather new to C++, I was actually reading about construction order but had it mixed around in my head. This makes sense, thanks!
  • Getting the signal when a checkbox is toggled in a QtableWidget

    Unsolved
    3
    0 Votes
    3 Posts
    5k Views
    JonBJ
    @mrjj said in Getting the signal when a checkbox is toggled in a QtableWidget: Im asking as using the View version of List and Table actually allows to share a model between them so if one sets check on some item, it will also show checked in the other. automatically. Ooohhh! :) But I don't quite get why you'd use it? By the time you can select/check something in the TableView anyway, why do you also want a ListView to select/check as well?
  • Lambda: How to pass object in ?

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    VRoninV
    alternatively: QTimer::singleShot(100, ui->pushButton, std::bind(&QPushButton::setDown,ui->pushButton,false));. You don't need a lambda to just forward a call to another method
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • 0 Votes
    9 Posts
    1k Views
    A
    @raven-worx ok, great, thanks! @raven-worx said in Using QStyleWindows created from QStyleFactory::create kills app with Segmentation Fault: ah yes, i knew i read that but couldn't find it on a second glance. IIRC the fusion style was introduced in Qt 5 I'll give it a try once I'll find the energy to upgrade to Qt5. :)
  • 0 Votes
    6 Posts
    901 Views
    JonBJ
    @pas059 Glad you're solved. I'm no expert either, plus I don't use Qt Creator/C++/builds/makes/.pro etc. :) But I think putting that QT += network into your .pro does more then just the LIBS += -lQtNetwork. For example, if QAbstractSocket stuff is in an additional network library file, QT += network may cause extra stuff to be brought in, or flags, or whatever....
  • Disable editing in QDateEdit

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    mrjjM
    Hi What about its ReadOnly property? dateEdit->setReadOnly(true);
  • General information regarding using plugins

    Unsolved
    3
    0 Votes
    3 Posts
    384 Views
    KiraK
    @sierdzio : @thanks
  • Blank window using two screens

    Solved
    3
    0 Votes
    3 Posts
    327 Views
    ivanicyI
    I found a solution: Use this code in the part where you want to show the window: if (QApplication::desktop()->screenCount() > 1) { myWindow->setGeometry( QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, myWindow->size(), QApplication::desktop()->availableGeometry(0))); } myWindow->show(); This solves my problem
  • Application window can only shrink, not grow, after switch from Qt 4 to Qt 5

    Solved
    7
    0 Votes
    7 Posts
    889 Views
    sierdzioS
    Yet another proof that 5.12.0 was a big mistake :-) OK good that things work for you now. Happy coding!
  • Gamma correction for display

    Unsolved pyside2 image
    2
    0 Votes
    2 Posts
    1k Views
    raven-worxR
    @krzysieklfc said in Gamma correction for display: Shouldn't Qt somehow handle the color correction when I'm 'telling it' to view the image? no! why should it? I don't quite understand why you are dividing by 256? Also whats the returning type of GetR()/GetG()/GetB()?
  • generate table sql schema from QSql* classes

    Unsolved
    2
    0 Votes
    2 Posts
    285 Views
    Christian EhrlicherC
    There is no support for such stuff, but some of your information can be gathered: PK: QSqlDatabase::primaryIndex() Column types: QSqlDatabase::record()
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • how install Qt3D.Core" version 2.10?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    Take a look at the Qt documentation of the respective modules in the Qt version you are using, you'll see there which version you can use.
  • Menu without action

    Solved
    16
    0 Votes
    16 Posts
    3k Views
    SGaistS
    @yogis40 said in Menu without action: Regarding the UI guidelines, I’m interested to found it. As mentioned previuously, I’m newbie in Qt and the last time I’ve programmed a UI it was in Visual Basic in 2004. Then, 15-years ago... There's per platform: KDE's human interface guidelines Apple's human interface guildines for macOS Apple's human interface guildines for iOS Apple's human interface guildines for tvOS Windows desktop guideline
  • Wizard fails to generate code

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    mrjjM
    @efjellanger Hi The buttons and menus are first added in section "Adding User Interaction" So first after than your .h file will have private slots: void newDocument(); void open(); void save(); void saveAs(); void print(); void exit(); and the other elements.
  • Debugging has failed

    Solved debug window debug error debugging debugger engine
    5
    0 Votes
    5 Posts
    3k Views
    xenovasX
    how about changing to MinGW 64 ?
  • How to resize newly added row in QTableView

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    JonBJ
    @asc7uni Given that we have now proved it works after a delay. I don't know, this is a guess, but it might be that the resizing does not work till the new row has been shown, because something about that is required to determine the size. In your slot can you do some kind of .show() on the table view just before the resizeRowsToContents()? [There's no point asking me more about this, you'll have to try whatever you can find and see.]
  • Library OpenGL Mathematics (GLM)

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    jsulmJ
    @Nio74 It's a header only library, so download the headers put them somewhere, then add the directory where the headers are to INCLUDEPATH variable in your pro file (see http://doc.qt.io/qt-5/qmake-project-files.html). For everything else you should read the documentation of that library.
  • facing problem in binding

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    ManiRonM
    @jsulm actually socket creation itself is a problem server_fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) here server_fd is -1