Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QtWebKit - pixelated since 4.8.0

    10
    0 Votes
    10 Posts
    5k Views
    M
    Also there is SmoothPixmapTransform - that should cover it. I have it turned on of course.
  • Changing look of persistent editors in QTableView

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved] How to get file location from QTreeView

    3
    0 Votes
    3 Posts
    3k Views
    M
    Be sure and edit your first post to add [Solved] to the title if you've got it working. Thanks!
  • Automagically generate labels and editing widgets for a QDataWidgetMapper

    4
    0 Votes
    4 Posts
    3k Views
    A
    I just discovered that up to Qt3 it was used to exist a QSqlForm and that it is still supported (but deprecated): "Q3SqlForm":http://developer.qt.nokia.com/doc/qt-4.7/q3sqlform.html This would have been very near to what I was looking for. Strangely enough, starting from Qt 4.X this component has been abandoned. The existing SQL Module contains just a Table and a Tree View (both well fit for the "master" view in a typical master/detail architecture). No more Form View (useful for the "detail" part of the master/detail). See: "QtSQL Module":http://developer.qt.nokia.com/doc/qt-4.7/qtsql.html "Qt SQL Programming":http://developer.qt.nokia.com/doc/qt-4.7/sql-programming.html "Porting to Qt4":http://developer.qt.nokia.com/doc/qt-4.7/porting4.html This is quite surprising, given that database front-ends (and database editing/reading forms) are a typical use-case for the Qt Library. I wonder if this feature is planned for re-introduction in Qt5 or later.
  • Searching your project for all src/*/*.cpp files

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Qt5: Javascript vs C++?

    23
    0 Votes
    23 Posts
    18k Views
    S
    [quote author="Tobias Hunger" date="1329228289"]Actually I am not afraid about my future here in Nokia, hacking on Qt Creator. I am still very happy with how Qt 5 is progressing, and am still adding Qt widgets all over creator:-)[/quote] This is very nice to know! :-)
  • 0 Votes
    2 Posts
    2k Views
    G
    You can set some render hints from the model: "QAbstractItemModel:data":http://developer.qt.nokia.com/doc/qt-4.8/qabstractitemmodel.html#data and use the font role
  • Qt to linux terminal

    8
    0 Votes
    8 Posts
    6k Views
    T
    [quote author="AcerExtensa" date="1329207608"]@test.waitForFinished(); qDebug() << "gelen :"<<test.readAllStandardOutput ();@ or use singal/slots: @void error ( QProcess::ProcessError error ) void finished ( int exitCode, QProcess::ExitStatus exitStatus ) void readyReadStandardError () void readyReadStandardOutput () void started () void stateChanged ( QProcess::ProcessState newState )@[/quote] i've solved it thanks =) appearantly i have to put the "waitForFinished()" method.
  • 0 Votes
    2 Posts
    2k Views
    G
    You cannot rely on the fact that headerData is only called once. If you have pagination, I would add an attribute to the model, holding the current start index (= offset from the start) of the result set (as passed to limit/offset in the query) and in headerData just add that offset to the section number. This way your return value is always the same.
  • Custom object type and QList

    8
    0 Votes
    8 Posts
    7k Views
    M
    Thx, big thx for advise))) !!!
  • 0 Votes
    3 Posts
    3k Views
    A
    Please, mark your thread as SOLVED in the name of thread.
  • 48 to 120 FPS 3D Image Viewer.

    2
    0 Votes
    2 Posts
    2k Views
    A
    I think you need use something like OpenGL. Cause you need to handle all operations with your videocard.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Implementing the QIODevice read stream as a RingBuffer

    3
    0 Votes
    3 Posts
    4k Views
    S
    thanx batosai i will try that...
  • Tool chain

    11
    0 Votes
    11 Posts
    4k Views
    T
    It is a 16bit unsigned int IIRC, so no.
  • QScrollArea

    8
    0 Votes
    8 Posts
    5k Views
    K
    thank you very much!!
  • [Solved] Customizing QTableWidget

    6
    0 Votes
    6 Posts
    3k Views
    F
    I pointed you to the documentation that allows you to get back the headers, and then you can call setVisible on them.
  • 0 Votes
    5 Posts
    8k Views
    B
    Yes. But I can't override the paintEvent of each child widget, because they were created in Designer (with UI). So maximum I can do - is try to install eventFilter on every widget like this: @MyWidget::MyWIdget(QWidget parent) : QWidget(parent) { QList<QWidget > widgets = findChildren<QWidget>(); foreach(QWidget widget, widgets) { widget->installEventFilter(this); } } MyWidget::eventFilter(QObject* object, QEvent* event) { if(event->type() == QEvent::Paint) { QPaintEvent* paintEvent = static_cast<QPaintEvent*>(event); if(_rowCount == 0) paintEmptyWidget(widget, /// Function like I describe above paintEvent->rect(), "Emty text", "Note text"); return true; } return QWidget::eventFilter(object,event); } @ But it doesn't work as I need. [quote author="shoyeb" date="1329193466"]then u need to override the paint event of each child widget... i am not sure that this will work but atleast u can try..[/quote]
  • 0 Votes
    4 Posts
    2k Views
    G
    "case 4" does not have a statement. You must add a regular statement/return statement or just break.
  • 0 Votes
    2 Posts
    3k Views
    S
    QGraphicsScene::selectionChanged is the signal you might be looking for.