As per what official doc says, you can override a custom quick setting tile's default long press behavior:
Long-tapping a tile prompts the App Info screen for the user. To override this behavior and instead launch an activity for setting preferences, add an
<intent-filter>
to one of your activities with ACTION_QS_TILE_PREFERENCES.
However this is only possible for the tile's owner app. Is it possible instead, to open a third-party activity - specially a device setting page - on quick tile being long pressed?