Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Embed a QWidget inside a non-Qt window

    3
    0 Votes
    3 Posts
    3k Views
    P
    Thank you, unfortunately this will not work, if I find a solution it must work on Mac OS too. In fact Mac OS is my primary development platform. Thanks anyway.
  • [Solved]Q_OBJECT and vtable

    5
    0 Votes
    5 Posts
    4k Views
    T
    It helped when I took the .o file away. The comment was as I mentioned before just a lucky hit when I tried to get what went wrong when I builded my class.
  • How to deal with comma and apostrophe chars when inserting into SQLight

    6
    0 Votes
    6 Posts
    8k Views
    U
    i just looked the :formatValue source code , its using simple replace (: and this is what i did. Thanks for helping guys
  • CheckBox doesn't toggle if placed in a specific place in QGridLayout

    4
    0 Votes
    4 Posts
    2k Views
    T
    :'( Apparently I have to go to report this as a bug. But I can't understand the full dimensions of the problem...!
  • Question about January 2012 release for QTSDK 1.2 with Qt 4.8

    4
    0 Votes
    4 Posts
    2k Views
    Q
    Thanks for the wonderful news! On a side note the ftp directory is still broken though.
  • 0 Votes
    3 Posts
    5k Views
    I
    Thank you miroslav. Now It works. This is the final working code: @void MainWindow::on_MainWindow_customContextMenuRequested(const QPoint &pos) { QMenu *menu = new QMenu(); QAction *setupAction = new QAction("Setup", this); QAction *monitorAction = new QAction("Monitor", this); menu->addAction(setupAction); menu->addAction(monitorAction); menu->addAction(ui->actionConnection); menu->exec(QCursor::pos()); }@
  • Static singleton and Q_GLOBAL_STATIC

    8
    1 Votes
    8 Posts
    10k Views
    J
    Yes it does.
  • Pixmap to be added to icon

    2
    0 Votes
    2 Posts
    2k Views
    A
    You can do the composition in code using QPainters composition methods, but you will need to generate the images for each of the modes this way and set them on QIcon manually from code. QIcon itself cannot automatically create composites like this.
  • QObject factory in Qt Plugin(non-creator)

    7
    0 Votes
    7 Posts
    5k Views
    A
    So adding Interface header into plugins project file as HEADER += solved the problem :)
  • Is it possible to get QToolBox widget's page name, in run time?

    6
    0 Votes
    6 Posts
    5k Views
    G
    @ QToolBox *toolBox = new QToolBox(this); QWidget *page1 = new QWidget(this); QWidget *page2 = new QWidget(this); QWidget *page3 = new QWidget(this); // fill the pages with the contents here toolBox->addItem(page1, "Page 1"); toolBox->addItem(page2, "Page 2"); toolBox->addItem(page3, "Page 3"); // do something else QCheckBox checkBox = / get it from somewhere */; QWidget *page = checkBox->parentWidget(); int index = toolBox->indexOf(page); QString pageTitle = toolBox->itemText(index); @ Brain to terminal, not tested.
  • 0 Votes
    2 Posts
    2k Views
    G
    It depends on how often that input will come in. If it's only sparse, you can do it in the GUI thread, I would say. Else, I would move it to a separate thread. In a thread it wouldn't make that much different if you insert one by one or in chunks. But there is no "best strategy", such things always depend on the actual use case.
  • Problem when loading dynamic libraries in a embedded platform

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Intellisense problem on linux

    3
    0 Votes
    3 Posts
    3k Views
    T
    [quote author="sierdzio" date="1328029289"]After that? How exactly after? Are we talking about Qt Creator? It usually works flawlessly for me. Maybe UI header was not compiled? Try to build the project first, and see if it starts working.[/quote] Thanks, but i was just found the solution. I updated qt creator and installed qt assistant. I dont know which one helps but it is working flawlessly for me, too.
  • Guaranteed Property order?

    13
    0 Votes
    13 Posts
    4k Views
    G
    [quote author="medvedm" date="1327948480"]If you look at how properties are returned, it is clear the concept of order is already there. You deal with properties via QMetaObject, which has the propertyOffset() function. This function is where in the set of properties your current class' properties start. All other properties from 0 - propertyOffset() are base class properties. So already we have order implied. This could not be changed without breaking older code. [/quote] This just implies that base class properties have lower numbers. but the order of your classes members might change without breaking this logic.
  • CommitData without killings QThreads

    4
    0 Votes
    4 Posts
    2k Views
    F
    Hi Volker, Thanks for your reply, I feared as such - and I don't have access to the processes source unfortunately. Never hurts to ask though! Thanks again
  • Calculate FPS with QGLWidget - paintGL() is not called

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • How to copy a symlink file on Mac?

    7
    0 Votes
    7 Posts
    6k Views
    G
    On the Mac, you could try to use "/bin/cp" in a QProcess instead of QFile::copy() to achieve this. It preserves the symlinks.
  • Does QStyledItemDelegate handle required space for the item in the view

    2
    0 Votes
    2 Posts
    2k Views
    N
    Got a solution with QListView::Adjust as resizeMode Seems a bit overkill to have the view lay the items everytime if a resize occurs without knowing its actually needed to re-position. Guess thats the only option for now tho.
  • Qobject_cast and Q_DECLARE_INTERFACE

    3
    0 Votes
    3 Posts
    3k Views
    P
    Yes, now I found the line which describes it. Multiple "Warning"s about Q_OBJECT confused me.
  • QSpinBox and Alphabets

    3
    0 Votes
    3 Posts
    2k Views
    I
    Ok thank you I'll try that. :)