Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Animated cursor

    1
    0 Votes
    1 Posts
    874 Views
    No one has replied
  • GroupBox positioning in the main window

    2
    0 Votes
    2 Posts
    1k Views
    G
    Hi, I expect mainLayout is a VBoxLayout? You can cascade the layouts or use a grid layoud to achieve what you want. e.g.: @ QGridLayout* mainLayout = ... mainLayout->addWidget(horizontalGroupBox, 0, 0, 1, 2); mainLayout->addWidget(gridGroupBox, 1, 0); mainLayout->addWidget(formGroupBox, 1, 1); @ Disclaimer: written directly from brain, no guarantee... ;-)
  • How to relocate and resize the widgets in the mainwindow

    8
    0 Votes
    8 Posts
    9k Views
    R
    Reimplement "resize event":http://doc.qt.nokia.com/latest/qwidget.html#resizeEvent.
  • Make widget in front of another widget

    2
    0 Votes
    2 Posts
    1k Views
    S
    @ void mainWindow::mousePressEvent(QMouseEvent *) { ::SetWindowPos(effectiveWinId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); ::SetWindowPos(effectiveWinId(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); raise(); show(); activateWindow(); qDebug() << "mouse click"; } @ Tried another solution, wouldn't work either.
  • Set focus in QtPropertyBrowser

    1
    0 Votes
    1 Posts
    890 Views
    No one has replied
  • How to make PC speak in Qt?

    6
    0 Votes
    6 Posts
    2k Views
    M
    I know there have been some other discussions on DevNet before. You might search for the tag "speech recognition" and see what comes up.
  • 0 Votes
    3 Posts
    5k Views
    A
    How can I use QCA OSSL plugin? I downloaded qca-ossl-2.0.0-beta3.tar.bz2 but i don't know how to use it with QCA.
  • Yacc lex uqestion

    5
    0 Votes
    5 Posts
    3k Views
    C
    Since you seem to have direct access to the parser/lexer you should also consider the options discussed here, http://www.gnu.org/software/bison/manual/html_node/How-Can-I-Reset-the-Parser.html, which id GNU Bison specific but might give you a clue if you are using a different parser/lexer. The link to flex "Start Conditions" on that page should be: http://flex.sourceforge.net/manual/Start-Conditions.html#Start-Conditions If the intermediate library is broken and the source/author is unavailable then you really have no choice but to replace the library.
  • ActiveQt

    1
    0 Votes
    1 Posts
    829 Views
    No one has replied
  • Unexpected deferred delete

    2
    0 Votes
    2 Posts
    2k Views
    G
    Stack trace part 2. @#21 0x0ecea4fd in cti_op_get_by_val (args=0x22c8ac) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp:1988 #22 0x0ece5f8a in QTJSC::JITThunks::tryCacheGetByID (callFrame=0x1ccc27cc, codeBlock=0x1ac3ff1c, returnAddress={m_value = 0x1ad18144}, baseValue= {m_ptr = 0x1ac3de54}, propertyName=@0xf03909c, slot=@0x1ac3d270, stubInfo=0x22c917) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp:926 #23 0x0edea0b9 in QTJSC::JITCode::execute (this=0x1bac2808, registerFile=0x1ac3ff1c, callFrame=0x1ad18024, globalData=0x1ac3d270, exception=0x1ac3de54) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79 #24 0x0ecc4c04 in QTJSC::Interpreter::execute (this=0x1ac3ff10, functionExecutable=0x1bac27f8, callFrame=0x1ac40124, function=0x1af614a0, thisObj=0x1af42540, args=@0x22ca48, scopeChain=0x1ba4b848, exception=0x1ac3de54) at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:71 #25 0x0ed14b1f in QTJSC::JSFunction::call (this=0x1af614a0, exec=0x1ac40124, thisValue={m_ptr = 0x1af42540}, args=@0x22ca48) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.cpp:122 #26 0x0ecffa0e in QTJSC::call (exec=0x1ac40124, functionObject= {m_ptr = 0x1af614a0}, callType=QTJSC::CallTypeJS, callData=@0x22ca54, thisValue={m_ptr = 0x1af42540}, args=@0x22ca48) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:62 #27 0x0ed7b1e2 in QScriptValue::call (this=0x22caa8, thisObject=@0x22cabc, args=@0x22cab8) at api/qscriptvalue.cpp:1604 #28 0x00b4ecf1 in QDeclarativeXMLHttpRequest::dispatchCallback ( this=0x1bb896d8, me=0x1bb89710) at qml/qdeclarativexmlhttprequest.cpp:1396 #29 0x00b4e633 in QDeclarativeXMLHttpRequest::finished (this=0x1bb896d8) at qml/qdeclarativexmlhttprequest.cpp:1312 #30 0x00b54fe5 in QDeclarativeXMLHttpRequest::qt_static_metacall ( _o=0x1bb896d8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x22cc00) at tmp/moc/debug_shared/qdeclarativexmlhttprequest.moc:55 #31 0x69deba77 in QMetaObject::activate (sender=0x1bb7e540, m=0x6cc3d280, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3547 #32 0x6cbea633 in QNetworkReply::finished (this=0x1bb7e540) at tmp/moc/debug_shared/moc_qnetworkreply.cpp:166 #33 0x6cb875c3 in QNetworkReplyImplPrivate::finished (this=0x1bb9cd10) at access/qnetworkreplyimpl.cpp:795 #34 0x6cb70c2c in QNetworkAccessBackend::finished (this=0x1bb96668) at access/qnetworkaccessbackend.cpp:324 #35 0x6cb79b83 in QNetworkAccessHttpBackend::replyFinished (this=0x1bb96668) at access/qnetworkaccesshttpbackend.cpp:753 #36 0x6cbe9ab2 in QNetworkAccessHttpBackend::qt_static_metacall ( _o=0x1bb96668, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x1bb74e28) at tmp/moc/debug_shared/moc_qnetworkaccesshttpbackend_p.cpp:96 #37 0x69de53f8 in QMetaCallEvent::placeMetaCall (this=0x1bb9fcf0, object=0x1bb96668) at kernel/qobject.cpp:525 #38 0x69de7234 in QObject::event (this=0x1bb96668, e=0x1bb9fcf0) at kernel/qobject.cpp:1195 #39 0x0476bf46 in QApplicationPrivate::notify_helper (this=0x1a9688e0, receiver=0x1bb96668, e=0x1bb9fcf0) at kernel/qapplication.cpp:4557 #40 0x04769899 in QApplication::notify (this=0x22f630, receiver=0x1bb96668, e=0x1bb9fcf0) at kernel/qapplication.cpp:3939 #41 0x69dd5a3e in QCoreApplication::notifyInternal (this=0x22f630, receiver=0x1bb96668, event=0x1bb9fcf0) at kernel/qcoreapplication.cpp:915 #42 0x69e46b00 in QCoreApplication::sendEvent (receiver=0x1bb96668, event=0x1bb9fcf0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #43 0x69dd6959 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1a968a18) at kernel/qcoreapplication.cpp:1539 #44 0x69dfb21b in qt_internal_proc (hwnd=0x300218, message=1025, wp=0, lp=0) at kernel/qeventdispatcher_win.cpp:496 #45 0x77d38709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll #46 0x00300218 in ?? () #47 0x00000401 in ?? () #48 0x00000000 in ?? ()@
  • DecorationRole Icon spacing issues

    2
    0 Votes
    2 Posts
    2k Views
    M
    Hello, Idea : Use an icon with the maximal size needed. PS : What type of class Model you are use ? Regards
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Cross platform coding

    5
    0 Votes
    5 Posts
    3k Views
    W
    Sierdizo, The links is just another attempt of the Universe to challenge my optimism. When I clicked the links I too went to a page other than I expected. But the page did have a link to Marble which did have some instruction on building a proper QT pro file so I am going to look at that information. Of course the instructions for compiling Marble do not work so I feel using Marble is a loss. But, thank you for your help and interest. Bill
  • QUdpSocket not sending data when created in QThread

    3
    0 Votes
    3 Posts
    3k Views
    N
    writeDatagram exits with no errors? And other question, what host ip are you using? If you set host ip the same as local ip you will not see packet in a sniffer. You can check broadcast ip.
  • QtMultimedia (Qt 4.8): adding codecs

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Video player with qt5

    3
    0 Votes
    3 Posts
    2k Views
    K
    isn't this line sufficient: @graphicsView->setViewport(new QGLWidget);@ In this case can you suggest the way?
  • 0 Votes
    5 Posts
    2k Views
    W
    You could create an ordinairy mainwindow (Qtcreator will do that for you when you create a new project) and add an QGLWidget as child: OGLWin = new OGLWindow(...) This way you can handle all the GUI stuff via the mainwindow and the OpenGl stuff in the QGLWidget.
  • QSqlRelationalTableModel setTable() and long table names CRASH

    1
    0 Votes
    1 Posts
    861 Views
    No one has replied
  • Help me ,about the QGraphicsView ,it flicker always in my aplication

    2
    0 Votes
    2 Posts
    2k Views
    G
    Are u using qt4?
  • [SOLVED] Show a QMessagebox with QItemDelegate

    2
    0 Votes
    2 Posts
    2k Views
    W
    I found a solution myself. You don't return a QMessageBox like this: @ if(kResColRank == index.column()) { QSpinBox *editor = new QSpinBox(parent); editor->setMinimum(0); editor->setMaximum(1000); editor->setSingleStep(1); return QMessageBox::information(parent, tr("TEXT"), tr("TEXT.\n")); } @ But you just pop up the messagebox: @ if(kResColRank == index.column()) { QSpinBox *editor = new QSpinBox(parent); editor->setMinimum(0); editor->setMaximum(1000); editor->setSingleStep(1); QMessageBox::information(parent, tr("TEXT"), tr("TEXT.\n")); return NULL; } @ Easy solution actually. But didn't know it.