Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • This topic is deleted!

    4
    0 Votes
    4 Posts
    305 Views
  • Gdb: could not load shared library symbol for linux.vdso.so.1

    2
    0 Votes
    2 Posts
    3k Views
    jerome_isAviableJ
    forget my post... it is the first time i use a debugger. I didn't know that i have to put a break point.... sorry
  • QLocale::uiLanguages() returns erroneous value

    2
    0 Votes
    2 Posts
    997 Views
    SGaistS
    Hi, AFAIK, and from your post, it seems that QLocale is using english @ LANG=en_US.UTF-8 LANGUAGE=en_US @
  • OS X sandbox container path

    3
    0 Votes
    3 Posts
    1k Views
    A
    It returns "~/Library/Application Support/<APPNAME>" for my environment: Qt 5.3.2 (Clang 5.1 (Apple), 64 bit), OS X Yosemite 10.10.1 (14B25) As I understand sandboxed app Apple requirements - it is "old style" app data location, and for sandboxed apps it now should be like in starting post.
  • Does QT support embedded images per the Microsoft .RTF specification ?

    7
    0 Votes
    7 Posts
    3k Views
    B
    I missed that link... But that's just what I needed, the supported html tags.in QT. I think we'll need to know this in order to convert our existing rtf customer data, stripping out the images and save them as QT Resources. Then when a users desires to edit one of the stored documents, we can use setHTML to load the data into QTextEdit. Didn't mean to drag this out, but I think I've got more than enough info to warrant a closer look and some experimenting. Thanks again for all your help...it's much appreciated/
  • Smooth Rotation Using OpenGL Widget

    4
    0 Votes
    4 Posts
    2k Views
    C
    I managed to get it working and will post the relevant bits of code in case anyone else needs them in the future. @mouseLockedFlag = false; mouseJustLocked = false; userRotSpeedX=userRotSpeedY=userRotSpeedZ=.1; @ @void MyGLWidget::mouseDoubleClickEvent(QMouseEvent * event) { if (mouseLockedFlag) { mouseLockedFlag = false; MyGLWidget::setCursor(Qt::ArrowCursor); } else { mouseJustLocked = true; mouseLockedFlag = true; MyGLWidget::setCursor(Qt::BlankCursor); } }@ @ QPoint widgetM = QWidget::mapToGlobal(QPoint(QWidget::size().width()/2,QWidget::size().height()/2)); if (mouseJustLocked) { QCursor::setPos(widgetM); mouseJustLocked = false; } QPoint cursorP = QCursor::pos(); float xDiff = cursorP.x()-widgetM.x(); float yDiff = cursorP.y()-widgetM.y(); float mouseDist = someMath::squRoot(xDiffxDiff + yDiffyDiff); float freeRoom = (QWidget::size().width() > QWidget::size().height() ? QWidget::size().height() : QWidget::size().width())/3; if (mouseLockedFlag) { if (freeRoom < mouseDist) { float newX = widgetM.x() + xDifffreeRoom/mouseDist; float newY = widgetM.y() + yDifffreeRoom/mouseDist; QCursor::setPos(newX,newY); } } if(timer.elapsed() > 1000/EXEC_PER_SECOND_CAP) { timer.restart(); timer.start(); if (mouseLockedFlag) { if (mouseDist != 0) { float newX = widgetM.x() + xDiff*qLn(mouseDist)/mouseDist; float newY = widgetM.y() + yDiff*qLn(mouseDist)/mouseDist; userRotX += userRotSpeedX*yDiff; userRotY += userRotSpeedY*xDiff; QCursor::setPos(newX, newY); } } }@ @ glRotatef(userRotX, 1.0, 0.0, 0.0); glRotatef(userRotY, 0.0, 1.0, 0.0); glRotatef(userRotZ, 0.0, 0.0, 1.0); glTranslatef(userX, userY, userZ);@
  • QSettings ini format [SOLVED]

    7
    0 Votes
    7 Posts
    2k Views
    SGaistS
    Good ! It's not an unknown feature :) Happy coding !
  • 0 Votes
    3 Posts
    1k Views
    C
    Hi, I don't have much experience with QWindow but I guess what you need to do is to use QWindows::setParent(0) to "detach" the QWindow instance from the main application and use QWidget::​createWindowContainer() to put it back into the main application. A signal form QWindow to the main application can trigger reattaching.
  • QTMultimedia mac os x crash

    2
    0 Votes
    2 Posts
    607 Views
    SGaistS
    Hi, Without more informations it's pretty much Crystal Ball Debugging. You should post the report OS X gives you when your application crashes
  • Passing data to Qdialog

    8
    0 Votes
    8 Posts
    5k Views
    V
    Tks, it worked!
  • Help with setting value in QStyledItemDelegate combobox

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Don't worry about your threads, only his posts get deleted. Then next question, were does the data from your combo box come from ? If I understand your correctly, the content of the combo box should be the current value stored in the model when you start editing ?
  • 0 Votes
    7 Posts
    2k Views
    A
    Also: there is no avoiding data() being called often. It will be called for each and every cell, but muliple times for the different roles as well. So, your implementation better be efficient. Use caching, construct your index a way that allows you to get to your data fast, whatever you can do speed it up. More tips: try to avoid a series of consecutive updates. Instead, make bigger updates in one go. And you do need to announce changes to data by emitting the dataChanged signal.
  • QLabel does not change visible Text after SetText

    9
    0 Votes
    9 Posts
    7k Views
    A
    Make sure your functions don't run forever. Qt is an event-driven system. That is: things happen, and these things cause events. Events can be handled using your own functions. As long your code is running, new events are not processed. So, best make sure that your own code does not run for too long. That is especially true in the main (GUI) thread, that handles things like painting and handling mouse and keyboard events. If you do have code that needs to run for a longer time, there are multiple ways to deal with that. You could use threads, but you can also chop up your work in smaller pieces and use something like a timer with a 0 timeout to start processing the next chunk. There are more options, of course.
  • QML ToolBar with Overflow menu ...

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QT Creator 3.3.0 / QT 5.4.0 on Win7 Pro 64 bit Very slow start up.

    3
    0 Votes
    3 Posts
    817 Views
    R
    Virus scanner maybe? My favourite text editor in windows (UltaEdit) was slowed down to a 2 min startup time a few years ago. It turns out the virus scanner was the cause.
  • QT Lbvlc

    2
    0 Votes
    2 Posts
    627 Views
    Chris KawaC
    Hi, welcome to devnet. I think you need to be a little more specific. What do you mean by encrypting video? Did you mean decoding? SVG is a vector graphics format. What does it have to do with video?
  • 0 Votes
    6 Posts
    2k Views
    C
    Ok, if someone published a Qt application for Windows and didn't included the necessary Qt dlls, this makes me think about the experience of that developer/company. You can check for the dependencies of a Windows application/dll using the Dependency Walker tool. You can download old Qt SDKs from http://download.qt.io/archive/qt/ which of course include prebuilt Qt libraries.
  • How to remove extra margin in QHBoxLayout

    3
    0 Votes
    3 Posts
    2k Views
    S
    Thanks, ckakman. It worked!!
  • Problem with deploying Qt/C++ desktop app that uses Qt Charts library

    7
    0 Votes
    7 Posts
    3k Views
    JKSHJ
    [quote author="whatisjeff" date="1420919498"]"This application failed to start because it could not find or load the Qt platform plugin "windows". Platforms available: "windows"[/quote]Qt said that the "windows" platform is available but can't be loaded. That usually means that one or more of the dependencies of qwindows.dll is missing. Which steps did you follow under Initial deployment (Quick and dirty) in http://qt-project.org/wiki/Deploy_an_Application_on_Windows ? Another possible reason (though I'm less sure about this one) is that you used the wrong version of the qwindows.dll or one of its dependencies. Make sure all of your DLLs match your kit (e.g. if you compiled your application with 32-bit MinGW 4.9.1, then make sure you get all your DLLs from _...\mingw491_32\bin_ and _...\mingw491_32\plugins_).
  • [SOLVED] How to read assistive information of other windows?

    4
    0 Votes
    4 Posts
    750 Views
    SGaistS
    Are you trying to build an assistive software ?